﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="List.ascx.cs" Inherits="WebClient.admin.Modules.diaryProducts.List" %>
<input type="hidden" value="false" id="Duyet" runat="server"/>
<input type="hidden" value="false" id="hidDelete" runat="server" />
<table width="735" cellpadding="0" cellspacing="0">
  
    <tr>
        <td colspan="4" align="center">
            <div style="padding: 5px 0px 5px 0px" runat="server" id="MyUpdate">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    
                      <asp:GridView ID="grdDs" runat="server" Width="100%" BorderColor="Transparent" PageSize="25" 
                        AllowPaging="True" AutoGenerateColumns="False" CellPadding="0"  
                            DataKeyNames="id" BorderWidth="1px"
                            >                        
                        <Columns>                        
                          <asp:TemplateField HeaderText="STT" HeaderStyle-Width="20" HeaderStyle-HorizontalAlign="center"
                            HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid" HeaderStyle-BorderWidth="1"
                            ItemStyle-HorizontalAlign="Center" ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid"
                            ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black" FooterStyle-BorderStyle="Solid"
                            FooterStyle-BorderWidth="1" >
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblSTT" Text='<%# Container.DataItemIndex + 1%>' />
                            </ItemTemplate>
                              <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                              <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                  HorizontalAlign="Center" Width="20px" />
                              <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                  HorizontalAlign="Center" />
                        </asp:TemplateField>

                           <asp:TemplateField ItemStyle-CssClass="WordWrapItem" HeaderText="id" ItemStyle-VerticalAlign="Middle"  HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-HorizontalAlign="Left" ItemStyle-BorderColor="Black"
                            ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black"
                            FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="1" Visible="false">
                            <ItemTemplate>                               
                               <span style="font-weight:bold;"><%#Convert.ToString(DataBinder.Eval(Container.DataItem, "id"))%>                                                                                                       
                               </span>
                            </ItemTemplate>
                               <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                   CssClass="WordWrapItem" HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:TemplateField>  

                           <asp:TemplateField ItemStyle-CssClass="WordWrapItem" HeaderText="productName" ItemStyle-VerticalAlign="Middle"  HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-HorizontalAlign="Left" ItemStyle-BorderColor="Black"
                            ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black"
                            FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="1">
                            <ItemTemplate>                               
                               <span style="font-weight:bold;"><%#Convert.ToString(DataBinder.Eval(Container.DataItem, "productName"))%>                                                                                                       
                               </span>
                            </ItemTemplate>
                               <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                   CssClass="WordWrapItem" HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:TemplateField>  

                           <asp:TemplateField ItemStyle-CssClass="WordWrapItem" HeaderText="price" ItemStyle-VerticalAlign="Middle"  HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-HorizontalAlign="Left" ItemStyle-BorderColor="Black"
                            ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black"
                            FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="1">
                            <ItemTemplate>                               
                               <span style="font-weight:bold;"><%#Convert.ToString(DataBinder.Eval(Container.DataItem, "price"))%>                                                                                                       
                               </span>
                            </ItemTemplate>
                               <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                   CssClass="WordWrapItem" HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:TemplateField>  

                           <asp:TemplateField ItemStyle-CssClass="WordWrapItem" HeaderText="lastUpdate" ItemStyle-VerticalAlign="Middle"  HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-HorizontalAlign="Left" ItemStyle-BorderColor="Black"
                            ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black"
                            FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="1">
                            <ItemTemplate>                               
                               <span style="font-weight:bold;"><%#Convert.ToString(DataBinder.Eval(Container.DataItem, "lastUpdate"))%>                                                                                                       
                               </span>
                            </ItemTemplate>
                               <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                               <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                   CssClass="WordWrapItem" HorizontalAlign="Left" VerticalAlign="Middle" />
                        </asp:TemplateField>  

              

                         <asp:TemplateField HeaderText="S?a" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20"
                            FooterStyle-HorizontalAlign="Center" HeaderStyle-BorderColor="Black" HeaderStyle-BorderStyle="Solid"
                            HeaderStyle-BorderWidth="1" ItemStyle-BorderColor="Black" ItemStyle-BorderStyle="Solid"
                            ItemStyle-BorderWidth="1" FooterStyle-BorderColor="Black" FooterStyle-BorderStyle="Solid"
                            FooterStyle-BorderWidth="1">
                            <ItemTemplate>
                            
                                     <a href="admin/Edit.aspx?pro=diaryProducts&ID1=<%#Eval("id") %>"> 
                                     <img src="/images/edit.gif" border="0"/></a>
                            </ItemTemplate>

                             <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                 HorizontalAlign="Center" />
                             <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                             <ItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
                                 HorizontalAlign="Center" Width="20px" />

                        </asp:TemplateField>

          

                   

                        </Columns>

                        </asp:GridView>
                       
                    </ContentTemplate>
                </asp:UpdatePanel>
                
            </div>
        </td>
    </tr>
    
</table>

